<div class="blockform">
<h2>{@havefnu~teams.team.admin@}</h2>
<table class="teams" cellpadding="0" cellspacing="0">
    {assign $i = 0}
    {assign $id = ''}
    {foreach $teams as $team}    
    {assign $class = ($i%2 == 0) ? 'even' : 'odd'}
    {if $id != $team->id_team}
    <tr>
        <th></th>
        <th>Nom</th>
        <th>Section</th>
        <th>Niveau</th>            
        <th>Action</th>
    </tr>        
    {assign $id = $team->id_team}
    {/if}
    <tr>
        <td class="{$class} name"><img src="{$j_basepath}images/icons/{$team->section_monitoring}/{$team->section_image}" alt="{$team->section_name|escxml}"/></td>
        <td class="{$class} name"><a href="{jurl 'havefnu~team:admin_edit',array('id'=>$team->id_team)}" title="Editer cette équipe">{$team->team_name|escxml}</a></td>
        <td class="{$class} name">{$team->section_name|escxml}</td>
        <td class="{$class} name">{$team->team_level|escxml}</td>				
        <td class="{$class} action"><a href="{jurl 'havefnu~team:admin_edit',array('id'=>$team->id_team)}" title="Editer cette équipe"><img src="{$j_basepath}images/others/edit.png" alt="editer"/></a> <a href="{jurl 'havefnu~team:admin_delete',array('id'=>$team->id_team)}" title="Supprimer cette équipe ?"><img src="{$j_basepath}images/others/delete.png" alt="supprimer" onclick="return confirm('Etes vous sûr de vouloir supprimer cette équipe ?')"/></a></td>
    </tr>
    {assign $i++}
    {/foreach}
</table>
</div>	